import { IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateCategoryDto {
  @IsString()
  readonly tree: string;

  @IsOptional()
  @IsNumber()
  readonly sort: number = 0;
}
